]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Remove _createPolicy() hook
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 7 Feb 2024 14:32:30 +0000 (15:32 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 9 Feb 2024 11:12:51 +0000 (11:12 +0000)
It is now unused (at least in gnome-shell itself).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3170>

js/ui/messageTray.js

index abdc0982a2a5fea4a76e85fbd0655adae902f7fc..163d3eab52c07dd848fd4a9371fbb6ece8526104 100644 (file)
@@ -633,7 +633,7 @@ export const Source = GObject.registerClass({
         this.notifications = [];
 
         if (!this._policy)
-            this._policy = this._createPolicy();
+            this._policy = new NotificationGenericPolicy();
     }
 
     get policy() {
@@ -662,10 +662,6 @@ export const Source = GObject.registerClass({
         this.notify('count');
     }
 
-    _createPolicy() {
-        return new NotificationGenericPolicy();
-    }
-
     get narrowestPrivacyScope() {
         return this.notifications.every(n => n.privacyScope === PrivacyScope.SYSTEM)
             ? PrivacyScope.SYSTEM